<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>angle_lx [HALCON算子参考手册]</title>
<style type="text/css">
      body {
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.body_main {
    margin-left: 35px;
    margin-right: 35px;
}

@media screen and (min-width:992px) {

    .body_main {
        margin-left: 10%;
        margin-right: 10%;
    }

    table.toctable {
        width: 80%
    }
}

@media screen and (min-width:1400px) {

    .body_main {
        margin-left: 15%;
        margin-right: 15%;
    }

    table.toctable {
        width: 70%
    }
}

body>div ul ul {
    margin-left: inherit;
}

a:link {
    color: #0044cc;
}

a:link,
a:visited {
    text-decoration: none;
}

a:link:hover,
a:visited:hover {
    text-decoration: underline;
}

th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-rendering: optimizeLegibility;
    color: #666666;
}

code {
    font-family: monospace,monospace;
}

h1 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

h2 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

hr {
    border: 0;
    border-top: solid 1px #f28d26;
}

.pre {
    display: block;
    padding-bottom: 1ex;
    font-family: monospace;
    white-space: pre;
}

pre {
    font-family: monospace, monospace;
    padding: 1ex;
    white-space: pre-wrap;
}

.toc {
    font-size: 80%;
    border-top: 1px dashed #f28d26;
    border-bottom: 1px dashed #f28d26;
    padding-top: 5px;
    padding-bottom: 5px;
}

.inv {
    margin: 0;
    border: 0;
    padding: 0;
}

.banner {
    color: #666666;
    padding-left: 1em;
}

.logo {
    background-color: white;
}

.keyboard {
    font-size: 80%;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #f28d26;
    background-color: #f3f3f3;
}

.warning {
    margin-top: 2ex;
    margin-bottom: 1ex;
    padding: 10px;
    text-align: center;
    border: 1px solid;
    color: #bb0000;
    background-color: #fff7f7
}

.imprint {
    margin-top: 1ex;
    font-size: 80%;
    color: #666666;
}

.imprinthead {
    font-weight: bolder;
    color: #666666;
}

.indexlink {
    text-align: right;
    padding-bottom: 5px;
}

.postscript {
    margin-top: 2ex;
    font-size: 80%;
    color: #666666
}

.evenrow {
    background-color: #e7e7ef;
    vertical-align: top;
}

.oddrow {
    background-color: #f7f7ff;
    vertical-align: top;
}

.headrow {
    background-color: #97979f;
    color: #ffffff;
    vertical-align: top;
}

.logorow {
    vertical-align: top;
}

.error {
    color: red;
}

.var {
    font-style: italic
}

.halconoperator {
    font-family: monospace, monospace;
}

span.operator {
    font-family: monospace, monospace;
}

span.procedure {
    font-family: monospace, monospace;
}

span.operation {
    font-family: monospace, monospace;
}

span.feature {
    font-family: Arial, Helvetica, Homerton, sans-serif;
}

ul {
    padding-left: 1.2em;
}

li.dot {
    list-style-type: square;
    color: #f28d26;
}

.breadcrumb {
    font-size: 80%;
    color: white;
    background-color: #062d64;
    margin-bottom: 20px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 15px;
}

.webbar {
    font-size: 80%;
    background-color: #dddddd;
    margin-top: 0px;
    margin-left: -35px;
    margin-right: -35px;
    margin-bottom: 0px;
    padding-top: 5px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 5px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px dashed #f28d26;
    font-size: 80%;
    color: #666666;
    padding-bottom: 8px;
}

.footer .socialmedia a {
    padding-left: 7px;
}

.socialmedia {
    padding-top: 10px;
}

.copyright {
    margin-top: 19px;
}

.breadcrumb a {
    color: #ffffff;
    border-bottom: 1px solid white;
}

.breadcrumb a:link:hover,
.breadcrumb a:visited:hover {
    text-decoration: none;
    border-bottom: none;
}

.heading {
    margin-top: 1ex;
    font-size: 110%;
    font-weight: bold;
    color: #666666;
}

.text {
    color: black;
}

.example {
    font-size: 80%;
    background-color: #f3f3f3;
    border: 1px dashed #666666;
    padding: 10px;
}

.displaymath {
    display: block;
    text-align: center;
    margin-top: 1ex;
    margin-bottom: 1ex;
}

.title {
    float: left;
    padding-top: 3px;
    padding-bottom: 3px;
}

.signnote {
    font-family: Arial, Helvetica, Homerton, sans-serif;
    font-size: 80%;
    color: #666666;
    font-weight: lighter;
    font-style: italic
}

.par {
    margin-bottom: 1.5em;
}

.parhead {
    text-align: right;
}

.parname {
    float: left;
}

.pardesc {
    font-size: 85%;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: 2em;
}

.parcat {
    color: #666;
    font-weight: bold;
}

*[data-if=cpp],
*[data-if=c],
*[data-if=dotnet],
*[data-if=com],
*[data-if=python] {
    display: none;
}

.tabbar {
    text-align: right;
    border-bottom: 1px solid #f28d26;
    margin-bottom: 0.5em;
}

ul.tabs {
    padding-top: 3px;
    padding-bottom: 3px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 80%
}

ul.tabs li {
    padding-top: 3px;
    padding-bottom: 3px;
    display: inline;
    overflow: hidden;
    list-style-type: none;
    margin: 0;
    margin-left: 8px;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    border-right: 1px solid #666;
}

ul.tabs li.active {
    border-left: 1px solid #f28d26;
    border-right: 1px solid #f28d26;
    border-top: 1px solid #f28d26;
    border-bottom: 1px solid #fff;
}

ul.tabs li.inactive {
    background-color: #eee;
}

ul.tabs li a {
    padding-left: 5px;
    padding-right: 5px;
    color: #666;
}

ul.tabs li a:link:hover {
    text-decoration: none;
}

ul.tabs li.inactive a {
    color: #666;
}

ul.tabs li.active a {
    color: black;
}

dl.generic dd {
    margin-bottom: 1em;
}

.pari {
    color: olive;
}

.paro {
    color: maroon;
}

.comment {
    font-size: 80%;
    color: green;
    white-space: nowrap;
}

table.grid {
    border-collapse: collapse;
}

table.grid td {
    padding: 5px;
    border: 1px solid;
}

table.layout {
    border: 0px;
}

table.layout td {
    padding: 5px;
}

table.table {
    border-collapse: collapse;
}

table.table td {
    padding: 5px;
    border-left: 0px;
    border-right: 0px;
}

table.table tr:last-child {
    border-bottom: 1px solid;
}

table.table th {
    padding: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: 0px;
    border-right: 0px;
}

.details_summary {
    cursor: pointer;
}

table.toctable {
    width: 100%;
}

table.toctable col:first-child {
    width: 20%;
}

table.toctable col:nth-last-child(2) {
    width: 8%;
}

table.altcolored tr:nth-child(even) {
    background-color: #f3f3f3;
}

    </style>
<!--OP_REF_STYLE_END-->
<script>
    <!--
var active_lang='hdevelop';function switchVisibility(obj,active_lang,new_lang)
{var display_style='inline';
for(var i=0;i<obj.length;i++)
{if(obj.item(i).getAttribute('data-if')==new_lang)
{obj.item(i).style.display=display_style;}
if(obj.item(i).getAttribute('data-if')==active_lang)
{obj.item(i).style.display='none';}}
return;}
function toggleLanguage(new_lang,initial)
{if(active_lang!=new_lang)
{var lis=document.getElementsByTagName('li');for(var i=0;i<lis.length;i++)
{if(lis.item(i).id=='syn-'+new_lang)
{lis.item(i).className='active';}
else
{lis.item(i).className='inactive';}}
var divs=document.getElementsByTagName('div');var spans=document.getElementsByTagName('span');switchVisibility(divs,active_lang,new_lang);switchVisibility(spans,active_lang,new_lang);if(!initial)
{setCookie("halcon_reference_language",new_lang,null,null);}
active_lang=new_lang;}
return;}
function setCookie(name,value,domain,exp_offset,path,secure)
{localStorage.setItem(name,value);}
function getCookie(name)
{return localStorage.getItem(name);}
function initialize()
{var qs=location.href.split('?')[1];var qs_lang_raw=location.href.split('interface=')[1];var qs_lang;if(qs_lang_raw)
{qs_lang=qs_lang_raw.split('#')[0];}
var cookie_lang=getCookie("halcon_reference_language");var new_lang;if((qs_lang=="hdevelop")||(qs_lang=="dotnet")||(qs_lang=="python")||(qs_lang=="cpp")||(qs_lang=="c"))
{new_lang=qs_lang;setCookie("halcon_reference_language",new_lang,null,null);}
else if((cookie_lang=="hdevelop")||(cookie_lang=="dotnet")||(cookie_lang=="python")||(cookie_lang=="cpp")||(cookie_lang=="c"))
{new_lang=cookie_lang;}
else
{new_lang="hdevelop";}
toggleLanguage(new_lang,1);return;}
-->

  </script>
</head>
<body onload="initialize();">
<div class="breadcrumb">
<br class="inv"><a href="index.html">目录</a> / <a href="toc_tools.html">工具</a> / <a href="toc_tools_geometry.html">几何</a><br class="inv">
</div>
<div class="body_main">
<div class="tabbar"><ul class="tabs">
<li id="syn-hdevelop" class="active"><a href="javascript:void(0);" onclick="toggleLanguage('hdevelop')" onfocus="blur()">HDevelop</a></li>
<li id="syn-dotnet" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('dotnet')" onfocus="blur()">.NET</a></li>
<li id="syn-python" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('python')" onfocus="blur()">Python</a></li>
<li id="syn-cpp" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('cpp')" onfocus="blur()">C++</a></li>
<li id="syn-c" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('c')" onfocus="blur()">C</a></li>
</ul></div>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<!--OP_REF_HEADER_END-->
<h1 id="sec_name">
<span data-if="hdevelop" style="display:inline;">angle_lx</span><span data-if="c" style="display:none;">angle_lx</span><span data-if="cpp" style="display:none;">AngleLx</span><span data-if="dotnet" style="display:none;">AngleLx</span><span data-if="python" style="display:none;">angle_lx</span> (算子名称)</h1>
<h2>名称</h2>
<p><code><span data-if="hdevelop" style="display:inline;">angle_lx</span><span data-if="c" style="display:none;">angle_lx</span><span data-if="cpp" style="display:none;">AngleLx</span><span data-if="dotnet" style="display:none;">AngleLx</span><span data-if="python" style="display:none;">angle_lx</span></code> — Calculate the angle between one line and the horizontal axis.</p>
<h2 id="sec_synopsis">参数签名</h2>
<div data-if="hdevelop" style="display:inline;">
<p>
<code><b>angle_lx</b>( :  : <a href="#Row1"><i>Row1</i></a>, <a href="#Column1"><i>Column1</i></a>, <a href="#Row2"><i>Row2</i></a>, <a href="#Column2"><i>Column2</i></a> : <a href="#Angle"><i>Angle</i></a>)</code></p>
</div>
<div data-if="c" style="display:none;">
<p>
<code>Herror <b>angle_lx</b>(double <a href="#Row1"><i>Row1</i></a>, double <a href="#Column1"><i>Column1</i></a>, double <a href="#Row2"><i>Row2</i></a>, double <a href="#Column2"><i>Column2</i></a>, double* <a href="#Angle"><i>Angle</i></a>)</code></p>
<p>
<code>Herror <b>T_angle_lx</b>(const Htuple <a href="#Row1"><i>Row1</i></a>, const Htuple <a href="#Column1"><i>Column1</i></a>, const Htuple <a href="#Row2"><i>Row2</i></a>, const Htuple <a href="#Column2"><i>Column2</i></a>, Htuple* <a href="#Angle"><i>Angle</i></a>)</code></p>
</div>
<div data-if="cpp" style="display:none;">
<p>
<code>void <b>AngleLx</b>(const HTuple&amp; <a href="#Row1"><i>Row1</i></a>, const HTuple&amp; <a href="#Column1"><i>Column1</i></a>, const HTuple&amp; <a href="#Row2"><i>Row2</i></a>, const HTuple&amp; <a href="#Column2"><i>Column2</i></a>, HTuple* <a href="#Angle"><i>Angle</i></a>)</code></p>
<p>
<code>static <a href="HTuple.html">HTuple</a> <a href="HMisc.html">HMisc</a>::<b>AngleLx</b>(const HTuple&amp; <a href="#Row1"><i>Row1</i></a>, const HTuple&amp; <a href="#Column1"><i>Column1</i></a>, const HTuple&amp; <a href="#Row2"><i>Row2</i></a>, const HTuple&amp; <a href="#Column2"><i>Column2</i></a>)</code></p>
<p>
<code>static double <a href="HMisc.html">HMisc</a>::<b>AngleLx</b>(double <a href="#Row1"><i>Row1</i></a>, double <a href="#Column1"><i>Column1</i></a>, double <a href="#Row2"><i>Row2</i></a>, double <a href="#Column2"><i>Column2</i></a>)</code></p>
</div>
<div data-if="com" style="display:none;"></div>
<div data-if="dotnet" style="display:none;">
<p>
<code>static void <a href="HOperatorSet.html">HOperatorSet</a>.<b>AngleLx</b>(<a href="HTuple.html">HTuple</a> <a href="#Row1"><i>row1</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Column1"><i>column1</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Row2"><i>row2</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Column2"><i>column2</i></a>, out <a href="HTuple.html">HTuple</a> <a href="#Angle"><i>angle</i></a>)</code></p>
<p>
<code>static <a href="HTuple.html">HTuple</a> <a href="HMisc.html">HMisc</a>.<b>AngleLx</b>(<a href="HTuple.html">HTuple</a> <a href="#Row1"><i>row1</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Column1"><i>column1</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Row2"><i>row2</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Column2"><i>column2</i></a>)</code></p>
<p>
<code>static double <a href="HMisc.html">HMisc</a>.<b>AngleLx</b>(double <a href="#Row1"><i>row1</i></a>, double <a href="#Column1"><i>column1</i></a>, double <a href="#Row2"><i>row2</i></a>, double <a href="#Column2"><i>column2</i></a>)</code></p>
</div>
<div data-if="python" style="display:none;">
<p>
<code>def <b>angle_lx</b>(<a href="#Row1"><i>row_1</i></a>: MaybeSequence[Union[float, int]], <a href="#Column1"><i>column_1</i></a>: MaybeSequence[Union[float, int]], <a href="#Row2"><i>row_2</i></a>: MaybeSequence[Union[float, int]], <a href="#Column2"><i>column_2</i></a>: MaybeSequence[Union[float, int]]) -&gt; Sequence[float]</code></p>
<p>
<code>def <b>angle_lx_s</b>(<a href="#Row1"><i>row_1</i></a>: MaybeSequence[Union[float, int]], <a href="#Column1"><i>column_1</i></a>: MaybeSequence[Union[float, int]], <a href="#Row2"><i>row_2</i></a>: MaybeSequence[Union[float, int]], <a href="#Column2"><i>column_2</i></a>: MaybeSequence[Union[float, int]]) -&gt; float</code></p>
</div>
<h2 id="sec_description">描述</h2>
<p>该算子 <code><span data-if="hdevelop" style="display:inline">angle_lx</span><span data-if="c" style="display:none">angle_lx</span><span data-if="cpp" style="display:none">AngleLx</span><span data-if="com" style="display:none">AngleLx</span><span data-if="dotnet" style="display:none">AngleLx</span><span data-if="python" style="display:none">angle_lx</span></code> calculates the angle between one line
and the horizontal axis.
As input the coordinates of two points on the line
(<a href="#Row1"><i><code><span data-if="hdevelop" style="display:inline">Row1</span><span data-if="c" style="display:none">Row1</span><span data-if="cpp" style="display:none">Row1</span><span data-if="com" style="display:none">Row1</span><span data-if="dotnet" style="display:none">row1</span><span data-if="python" style="display:none">row_1</span></code></i></a>,<a href="#Column1"><i><code><span data-if="hdevelop" style="display:inline">Column1</span><span data-if="c" style="display:none">Column1</span><span data-if="cpp" style="display:none">Column1</span><span data-if="com" style="display:none">Column1</span><span data-if="dotnet" style="display:none">column1</span><span data-if="python" style="display:none">column_1</span></code></i></a>,
<a href="#Row2"><i><code><span data-if="hdevelop" style="display:inline">Row2</span><span data-if="c" style="display:none">Row2</span><span data-if="cpp" style="display:none">Row2</span><span data-if="com" style="display:none">Row2</span><span data-if="dotnet" style="display:none">row2</span><span data-if="python" style="display:none">row_2</span></code></i></a>,<a href="#Column2"><i><code><span data-if="hdevelop" style="display:inline">Column2</span><span data-if="c" style="display:none">Column2</span><span data-if="cpp" style="display:none">Column2</span><span data-if="com" style="display:none">Column2</span><span data-if="dotnet" style="display:none">column2</span><span data-if="python" style="display:none">column_2</span></code></i></a>) are expected.
The calculation is performed as follows: We interpret the line
as a vector with starting point
<a href="#Row1"><i><code><span data-if="hdevelop" style="display:inline">Row1</span><span data-if="c" style="display:none">Row1</span><span data-if="cpp" style="display:none">Row1</span><span data-if="com" style="display:none">Row1</span><span data-if="dotnet" style="display:none">row1</span><span data-if="python" style="display:none">row_1</span></code></i></a>,<a href="#Column1"><i><code><span data-if="hdevelop" style="display:inline">Column1</span><span data-if="c" style="display:none">Column1</span><span data-if="cpp" style="display:none">Column1</span><span data-if="com" style="display:none">Column1</span><span data-if="dotnet" style="display:none">column1</span><span data-if="python" style="display:none">column_1</span></code></i></a> and end point
<a href="#Row2"><i><code><span data-if="hdevelop" style="display:inline">Row2</span><span data-if="c" style="display:none">Row2</span><span data-if="cpp" style="display:none">Row2</span><span data-if="com" style="display:none">Row2</span><span data-if="dotnet" style="display:none">row2</span><span data-if="python" style="display:none">row_2</span></code></i></a>,<a href="#Column2"><i><code><span data-if="hdevelop" style="display:inline">Column2</span><span data-if="c" style="display:none">Column2</span><span data-if="cpp" style="display:none">Column2</span><span data-if="com" style="display:none">Column2</span><span data-if="dotnet" style="display:none">column2</span><span data-if="python" style="display:none">column_2</span></code></i></a>.
The starting point is on the horizontal axis and defines the center of
rotation in the following consideration.
If the end point is above the horizontal axis, the angle (with positive sign)
results from the rotation of the horizontal axis in counter clockwise
direction onto the vector.
If the end point is below the horizontal axis, the angle (with negative sign)
results from the rotation of the horizontal axis in clockwise
direction onto the vector.
The result depends on the order of the two points defining the line.
The parameter <a href="#Angle"><i><code><span data-if="hdevelop" style="display:inline">Angle</span><span data-if="c" style="display:none">Angle</span><span data-if="cpp" style="display:none">Angle</span><span data-if="com" style="display:none">Angle</span><span data-if="dotnet" style="display:none">angle</span><span data-if="python" style="display:none">angle</span></code></i></a> returns the angle in radians, ranging
from <span title="1" class="displaymath"><!-- Created by MetaPost 1.902 on 2023.05.15:2033 --><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="7.75266em" height="0.915532em" viewBox="0 0 124.042557 14.648514">
<!-- Original BoundingBox: -62.021286 -7.324249 62.021271 7.324265 -->
  <defs>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_65">
      <path style="fill-rule: evenodd;" d="M428.000000 -188.000000L484.000000 -41.000000L408.000000 -41.000000C390.000000 -41.000000,381.000000 -34.000000,381.000000 -21.000000C381.000000 -7.000000,390.000000 -0.000000,408.000000 -0.000000L564.000000 -0.000000C582.000000 -0.000000,591.000000 -7.000000,591.000000 -21.000000C591.000000 -34.000000,582.000000 -41.000000,564.000000 -41.000000L527.000000 -41.000000L330.000000 -563.000000L126.000000 -563.000000C108.000000 -563.000000,99.000000 -556.000000,99.000000 -543.000000C99.000000 -529.000000,108.000000 -522.000000,126.000000 -522.000000L246.000000 -522.000000L67.000000 -41.000000L36.000000 -41.000000C18.000000 -41.000000,9.000000 -34.000000,9.000000 -21.000000C9.000000 -7.000000,18.000000 -0.000000,36.000000 -0.000000L187.000000 -0.000000C205.000000 -0.000000,214.000000 -7.000000,214.000000 -21.000000C214.000000 -34.000000,205.000000 -41.000000,187.000000 -41.000000L108.000000 -41.000000L162.000000 -188.000000M413.000000 -229.000000L178.000000 -229.000000L286.000000 -522.000000L301.000000 -522.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_101">
      <path style="fill-rule: evenodd;" d="M520.000000 -199.000000C520.000000 -245.000000,517.000000 -264.000000,503.000000 -297.000000C467.000000 -380.000000,387.000000 -431.000000,291.000000 -431.000000C163.000000 -431.000000,63.000000 -338.000000,63.000000 -217.000000C63.000000 -87.000000,170.000000 16.000000,305.000000 16.000000C396.000000 16.000000,516.000000 -31.000000,516.000000 -66.000000C516.000000 -77.000000,507.000000 -86.000000,497.000000 -86.000000C492.000000 -86.000000,488.000000 -84.000000,481.000000 -79.000000C441.000000 -47.000000,368.000000 -25.000000,306.000000 -25.000000C198.000000 -25.000000,118.000000 -94.000000,104.000000 -199.000000M104.000000 -240.000000C122.000000 -332.000000,194.000000 -390.000000,291.000000 -390.000000C388.000000 -390.000000,462.000000 -331.000000,478.000000 -240.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_103">
      <path style="fill-rule: evenodd;" d="M440.000000 -334.000000C395.000000 -401.000000,342.000000 -431.000000,269.000000 -431.000000C156.000000 -431.000000,63.000000 -337.000000,63.000000 -221.000000C63.000000 -105.000000,156.000000 -10.000000,269.000000 -10.000000C341.000000 -10.000000,395.000000 -41.000000,440.000000 -107.000000L440.000000 22.000000C440.000000 90.000000,386.000000 145.000000,318.000000 145.000000L202.000000 145.000000C184.000000 145.000000,175.000000 152.000000,175.000000 165.000000C175.000000 179.000000,184.000000 186.000000,202.000000 186.000000L316.000000 186.000000C366.000000 186.000000,403.000000 169.000000,438.000000 132.000000C468.000000 100.000000,481.000000 69.000000,481.000000 28.000000L481.000000 -376.000000L535.000000 -376.000000C553.000000 -376.000000,562.000000 -383.000000,562.000000 -397.000000C562.000000 -410.000000,553.000000 -417.000000,535.000000 -417.000000L440.000000 -417.000000M272.000000 -390.000000C367.000000 -390.000000,440.000000 -316.000000,440.000000 -219.000000C440.000000 -126.000000,365.000000 -51.000000,272.000000 -51.000000C179.000000 -51.000000,104.000000 -126.000000,104.000000 -221.000000C104.000000 -315.000000,178.000000 -390.000000,272.000000 -390.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_108">
      <path style="fill-rule: evenodd;" d="M320.000000 -604.000000L162.000000 -604.000000C144.000000 -604.000000,135.000000 -597.000000,135.000000 -584.000000C135.000000 -570.000000,144.000000 -563.000000,162.000000 -563.000000L279.000000 -563.000000L279.000000 -41.000000L119.000000 -41.000000C101.000000 -41.000000,92.000000 -34.000000,92.000000 -21.000000C92.000000 -7.000000,101.000000 -0.000000,119.000000 -0.000000L480.000000 -0.000000C498.000000 -0.000000,508.000000 -7.000000,508.000000 -21.000000C508.000000 -34.000000,499.000000 -41.000000,480.000000 -41.000000L320.000000 -41.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_110">
      <path style="fill-rule: evenodd;" d="M167.000000 -417.000000L92.000000 -417.000000C74.000000 -417.000000,65.000000 -410.000000,65.000000 -397.000000C65.000000 -383.000000,74.000000 -376.000000,92.000000 -376.000000L126.000000 -376.000000L126.000000 -41.000000L81.000000 -41.000000C62.000000 -41.000000,53.000000 -34.000000,53.000000 -21.000000C53.000000 -7.000000,62.000000 -0.000000,81.000000 -0.000000L212.000000 -0.000000C230.000000 -0.000000,239.000000 -7.000000,239.000000 -21.000000C239.000000 -34.000000,230.000000 -41.000000,212.000000 -41.000000L167.000000 -41.000000L167.000000 -294.000000C199.000000 -335.000000,209.000000 -346.000000,224.000000 -357.000000C252.000000 -380.000000,281.000000 -390.000000,319.000000 -390.000000C358.000000 -390.000000,377.000000 -384.000000,401.000000 -364.000000C426.000000 -343.000000,439.000000 -318.000000,439.000000 -288.000000L439.000000 -41.000000L405.000000 -41.000000C387.000000 -41.000000,378.000000 -34.000000,378.000000 -21.000000C378.000000 -7.000000,387.000000 -0.000000,405.000000 -0.000000L514.000000 -0.000000C532.000000 -0.000000,541.000000 -7.000000,541.000000 -21.000000C541.000000 -34.000000,532.000000 -41.000000,514.000000 -41.000000L480.000000 -41.000000L480.000000 -295.000000C480.000000 -372.000000,412.000000 -431.000000,323.000000 -431.000000C261.000000 -431.000000,225.000000 -412.000000,167.000000 -348.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmsy10_0">
      <path style="fill-rule: evenodd;" d="M659.000000 -230.000000C676.000000 -230.000000,694.000000 -230.000000,694.000000 -250.000000C694.000000 -270.000000,676.000000 -270.000000,659.000000 -270.000000L118.000000 -270.000000C101.000000 -270.000000,83.000000 -270.000000,83.000000 -250.000000C83.000000 -230.000000,101.000000 -230.000000,118.000000 -230.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmsy10_20">
      <path style="fill-rule: evenodd;" d="M675.000000 -594.000000C686.000000 -599.000000,694.000000 -604.000000,694.000000 -616.000000C694.000000 -627.000000,686.000000 -636.000000,674.000000 -636.000000C669.000000 -636.000000,660.000000 -632.000000,656.000000 -630.000000L103.000000 -369.000000C86.000000 -361.000000,83.000000 -354.000000,83.000000 -346.000000C83.000000 -337.000000,89.000000 -330.000000,103.000000 -324.000000L656.000000 -64.000000C669.000000 -57.000000,671.000000 -57.000000,674.000000 -57.000000C685.000000 -57.000000,694.000000 -66.000000,694.000000 -77.000000C694.000000 -86.000000,690.000000 -92.000000,673.000000 -100.000000L150.000000 -346.000000M659.000000 137.000000C676.000000 137.000000,694.000000 137.000000,694.000000 117.000000C694.000000 97.000000,673.000000 97.000000,658.000000 97.000000L119.000000 97.000000C104.000000 97.000000,83.000000 97.000000,83.000000 117.000000C83.000000 137.000000,101.000000 137.000000,118.000000 137.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmmi10_25">
      <path style="fill-rule: evenodd;" d="M265.000000 -373.000000L378.000000 -373.000000C345.000000 -225.000000,336.000000 -182.000000,336.000000 -115.000000C336.000000 -100.000000,336.000000 -73.000000,344.000000 -39.000000C354.000000 5.000000,365.000000 11.000000,380.000000 11.000000C400.000000 11.000000,421.000000 -7.000000,421.000000 -27.000000C421.000000 -33.000000,421.000000 -35.000000,415.000000 -49.000000C386.000000 -121.000000,386.000000 -186.000000,386.000000 -214.000000C386.000000 -267.000000,393.000000 -321.000000,404.000000 -373.000000L518.000000 -373.000000C531.000000 -373.000000,567.000000 -373.000000,567.000000 -407.000000C567.000000 -431.000000,546.000000 -431.000000,527.000000 -431.000000L192.000000 -431.000000C170.000000 -431.000000,132.000000 -431.000000,88.000000 -384.000000C53.000000 -345.000000,27.000000 -299.000000,27.000000 -294.000000C27.000000 -293.000000,27.000000 -284.000000,39.000000 -284.000000C47.000000 -284.000000,49.000000 -288.000000,55.000000 -296.000000C104.000000 -373.000000,162.000000 -373.000000,182.000000 -373.000000L239.000000 -373.000000C207.000000 -252.000000,153.000000 -131.000000,111.000000 -40.000000C103.000000 -25.000000,103.000000 -23.000000,103.000000 -16.000000C103.000000 3.000000,119.000000 11.000000,132.000000 11.000000C162.000000 11.000000,170.000000 -17.000000,182.000000 -54.000000C196.000000 -100.000000,196.000000 -102.000000,209.000000 -152.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmmi10_60">
      <path style="fill-rule: evenodd;" d="M675.000000 -498.000000C687.000000 -504.000000,694.000000 -509.000000,694.000000 -520.000000C694.000000 -531.000000,685.000000 -540.000000,674.000000 -540.000000C671.000000 -540.000000,669.000000 -540.000000,656.000000 -533.000000L102.000000 -272.000000C91.000000 -267.000000,83.000000 -262.000000,83.000000 -250.000000C83.000000 -238.000000,91.000000 -233.000000,102.000000 -228.000000L656.000000 33.000000C669.000000 40.000000,671.000000 40.000000,674.000000 40.000000C685.000000 40.000000,694.000000 31.000000,694.000000 20.000000C694.000000 9.000000,687.000000 4.000000,675.000000 -2.000000L150.000000 -250.000000"></path>
    </g>
  </defs>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,0.978714 10.869522)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmsy10_0"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,13.376678 10.869522)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmmi10_25"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,27.462830 10.869522)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmsy10_20"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,44.288651 10.869522)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHpcrr8r_65"></use>
    <use xlink:href="#GLYPHpcrr8r_110" x="6.000092"></use>
    <use xlink:href="#GLYPHpcrr8r_103" x="12.000185"></use>
    <use xlink:href="#GLYPHpcrr8r_108" x="18.000277"></use>
    <use xlink:href="#GLYPHpcrr8r_101" x="24.000369"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,96.537155 10.869522)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmmi10_60"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,113.362976 10.869522)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmmi10_25"></use>
  </g>
</svg></span>.
</p>
<h2 id="sec_execution">运行信息</h2>
<ul>
  <li>多线程类型:可重入(与非独占操作符并行运行)。</li>
<li>多线程作用域:全局(可以从任何线程调用)。</li>
  <li>未经并行化处理。</li>
</ul>
<h2 id="sec_parameters">参数表</h2>
  <div class="par">
<div class="parhead">
<span id="Row1" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Row1</span><span data-if="c" style="display:none">Row1</span><span data-if="cpp" style="display:none">Row1</span><span data-if="com" style="display:none">Row1</span><span data-if="dotnet" style="display:none">row1</span><span data-if="python" style="display:none">row_1</span></code></b> (input_control)  </span><span>point.y(-array) <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">MaybeSequence[Union[float, int]]</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real / </span><span data-if="hdevelop" style="display:inline">integer)</span><span data-if="dotnet" style="display:none"> (<i>double</i> / </span><span data-if="dotnet" style="display:none">int / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>double</i> / </span><span data-if="cpp" style="display:none">Hlong)</span><span data-if="c" style="display:none"> (<i>double</i> / </span><span data-if="c" style="display:none">Hlong)</span></span>
</div>
<p class="pardesc">Row coordinate the first point of the line.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Column1" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Column1</span><span data-if="c" style="display:none">Column1</span><span data-if="cpp" style="display:none">Column1</span><span data-if="com" style="display:none">Column1</span><span data-if="dotnet" style="display:none">column1</span><span data-if="python" style="display:none">column_1</span></code></b> (input_control)  </span><span>point.x(-array) <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">MaybeSequence[Union[float, int]]</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real / </span><span data-if="hdevelop" style="display:inline">integer)</span><span data-if="dotnet" style="display:none"> (<i>double</i> / </span><span data-if="dotnet" style="display:none">int / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>double</i> / </span><span data-if="cpp" style="display:none">Hlong)</span><span data-if="c" style="display:none"> (<i>double</i> / </span><span data-if="c" style="display:none">Hlong)</span></span>
</div>
<p class="pardesc">Column coordinate of the first point of the line.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Row2" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Row2</span><span data-if="c" style="display:none">Row2</span><span data-if="cpp" style="display:none">Row2</span><span data-if="com" style="display:none">Row2</span><span data-if="dotnet" style="display:none">row2</span><span data-if="python" style="display:none">row_2</span></code></b> (input_control)  </span><span>point.y(-array) <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">MaybeSequence[Union[float, int]]</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real / </span><span data-if="hdevelop" style="display:inline">integer)</span><span data-if="dotnet" style="display:none"> (<i>double</i> / </span><span data-if="dotnet" style="display:none">int / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>double</i> / </span><span data-if="cpp" style="display:none">Hlong)</span><span data-if="c" style="display:none"> (<i>double</i> / </span><span data-if="c" style="display:none">Hlong)</span></span>
</div>
<p class="pardesc">Row coordinate of the second point of the line.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Column2" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Column2</span><span data-if="c" style="display:none">Column2</span><span data-if="cpp" style="display:none">Column2</span><span data-if="com" style="display:none">Column2</span><span data-if="dotnet" style="display:none">column2</span><span data-if="python" style="display:none">column_2</span></code></b> (input_control)  </span><span>point.x(-array) <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">MaybeSequence[Union[float, int]]</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real / </span><span data-if="hdevelop" style="display:inline">integer)</span><span data-if="dotnet" style="display:none"> (<i>double</i> / </span><span data-if="dotnet" style="display:none">int / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>double</i> / </span><span data-if="cpp" style="display:none">Hlong)</span><span data-if="c" style="display:none"> (<i>double</i> / </span><span data-if="c" style="display:none">Hlong)</span></span>
</div>
<p class="pardesc">Column coordinate of the second point of the line.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Angle" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Angle</span><span data-if="c" style="display:none">Angle</span><span data-if="cpp" style="display:none">Angle</span><span data-if="com" style="display:none">Angle</span><span data-if="dotnet" style="display:none">angle</span><span data-if="python" style="display:none">angle</span></code></b> (output_control)  </span><span>angle.rad(-array) <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">Sequence[float]</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real)</span><span data-if="dotnet" style="display:none"> (<i>double</i>)</span><span data-if="cpp" style="display:none"> (<i>double</i>)</span><span data-if="c" style="display:none"> (<i>double</i>)</span></span>
</div>
<p class="pardesc">Angle between the line and the horizontal axis [rad].</p>
</div>
<h2 id="sec_example_all">例程 (HDevelop)</h2>
<pre class="example">
dev_open_window (0, 0, 512, 512, 'black', WindowHandle)
RowA1 := 255
ColumnA1 := 10
RowA2 := 255
ColumnA2 := 501
gen_contour_polygon_xld (Contour, [RowA1,RowA2], [ColumnA1,ColumnA2])
Row1 := 255
Column1 := 255
for I := 5 to 360 by 5
  Row2 := 255 - sin(rad(I)) * 200
  Column2 := 255 + cos(rad(I)) * 200
  gen_contour_polygon_xld (Contour, [Row1,Row2], [Column1,Column2])
  angle_lx (Row1, Column1, Row2, Column2, Angle)
  AngleDeg := deg(Angle)
endfor
</pre>
<h2 id="sec_result">结果</h2>
<p><code><span data-if="hdevelop" style="display:inline">angle_lx</span><span data-if="c" style="display:none">angle_lx</span><span data-if="cpp" style="display:none">AngleLx</span><span data-if="com" style="display:none">AngleLx</span><span data-if="dotnet" style="display:none">AngleLx</span><span data-if="python" style="display:none">angle_lx</span></code> returns <TT>2</TT> (
      <TT>H_MSG_TRUE</TT>)
    .
</p>
<h2 id="sec_alternatives">可替代算子</h2>
<p>
<code><a href="angle_ll.html"><span data-if="hdevelop" style="display:inline">angle_ll</span><span data-if="c" style="display:none">angle_ll</span><span data-if="cpp" style="display:none">AngleLl</span><span data-if="com" style="display:none">AngleLl</span><span data-if="dotnet" style="display:none">AngleLl</span><span data-if="python" style="display:none">angle_ll</span></a></code>
</p>
<h2 id="sec_module">模块</h2>
<p>
Foundation</p>
<!--OP_REF_FOOTER_START-->
<hr>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<div class="footer">
<div class="copyright">HALCON算子参考手册 Copyright © 2015-2023 51Halcon</div>
</div>
</div>
</body>
</html>
